package org.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.commons.lang3.RandomUtils;
import org.example.mapper.TenantMapper;
import org.example.dto.Tenant;
import org.example.service.TenantService;
import org.springframework.stereotype.Service;


@Service
public class TenantServiceImpl extends ServiceImpl<TenantMapper, Tenant> implements TenantService {

    @Override
    public String getTenantInfoForLoginUser() {
        // 模拟不同租户登录
        String[] tenants = new String[]{"00001", "00002"};
        return tenants[RandomUtils.nextInt(0, 2)];
    }

}
